import React from 'react';
import { Result, Button, InterviewQuestionMobile } from '@/pages/RecruitEmail/mobile/components';
import { Typography } from 'antd';
import { STATUS } from '@/pages/RecruitEmail/constants';
import styles from './index.less';
// 废弃
const { Paragraph } = Typography;
function SignResult({ data, handleCheck }) {
    const list = React.useMemo(() => {
        const result = [
            {
                key: '面试岗位：',
                value: data?.duteName || '--'
            },
            {
                key: '面试时间：',
                value: data?.interviewStartTime || '--'
            },
            {
                key: '面试地点：',
                value: data?.interviewLocation || '--'
            },
            {
                key: '面试轮次：',
                value: data?.interviewRoundName || '--'
            },
            {
                key: '面试方式：',
                value: data?.interviewWayName || '--'
            }
        ];
        return result;
    }, [data]);

    return (
        <div className={styles.interviewMobile}>
            <>
                <Result
                    type={STATUS.ACCEPT}
                    title="已提交面试作业"
                    content="为避免影响您后续面试，请您于面试前，尽快完善《应聘登记表》"
                />
                <div className={styles.ph16}>
                    <Button type="primary" onClick={handleCheck}>
                        立即完善
                    </Button>
                </div>
            </>
            <div className={styles.con1}>
                <div className={styles.interviewInfo}>面试信息</div>
                <InterviewQuestionMobile list={list} />
            </div>
            <div className={styles.con1}>
                <div className={styles.interviewInfo}>友情提示</div>
                <Paragraph>您可以提前做好如下面试准备：</Paragraph>
                <Paragraph>1.手机调整到静音或勿扰模式</Paragraph>
                <Paragraph>2.准备好您的自我介绍（2分钟左右）</Paragraph>
                <Paragraph>3.如果您有想展示的作品，可提前打开作品文件</Paragraph>
            </div>
        </div>
    );
}

export default SignResult;
